Optimal. Leaf size=71 \[ \frac {2 (a B+A b) F\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{d}+\frac {2 (a A-b B) E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{d}+\frac {2 b B \sin (c+d x)}{d \sqrt {\cos (c+d x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.19, antiderivative size = 71, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 6, integrand size = 31, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.194, Rules used = {2954, 2968, 3021, 2748, 2641, 2639} \[ \frac {2 (a B+A b) F\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{d}+\frac {2 (a A-b B) E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{d}+\frac {2 b B \sin (c+d x)}{d \sqrt {\cos (c+d x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2639
Rule 2641
Rule 2748
Rule 2954
Rule 2968
Rule 3021
Rubi steps
\begin {align*} \int \sqrt {\cos (c+d x)} (a+b \sec (c+d x)) (A+B \sec (c+d x)) \, dx &=\int \frac {(b+a \cos (c+d x)) (B+A \cos (c+d x))}{\cos ^{\frac {3}{2}}(c+d x)} \, dx\\ &=\int \frac {b B+(A b+a B) \cos (c+d x)+a A \cos ^2(c+d x)}{\cos ^{\frac {3}{2}}(c+d x)} \, dx\\ &=\frac {2 b B \sin (c+d x)}{d \sqrt {\cos (c+d x)}}+2 \int \frac {\frac {1}{2} (A b+a B)+\frac {1}{2} (a A-b B) \cos (c+d x)}{\sqrt {\cos (c+d x)}} \, dx\\ &=\frac {2 b B \sin (c+d x)}{d \sqrt {\cos (c+d x)}}+(A b+a B) \int \frac {1}{\sqrt {\cos (c+d x)}} \, dx+(a A-b B) \int \sqrt {\cos (c+d x)} \, dx\\ &=\frac {2 (a A-b B) E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{d}+\frac {2 (A b+a B) F\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{d}+\frac {2 b B \sin (c+d x)}{d \sqrt {\cos (c+d x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.37, size = 64, normalized size = 0.90 \[ \frac {2 \left ((a B+A b) F\left (\left .\frac {1}{2} (c+d x)\right |2\right )+(a A-b B) E\left (\left .\frac {1}{2} (c+d x)\right |2\right )+\frac {b B \sin (c+d x)}{\sqrt {\cos (c+d x)}}\right )}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 0.48, size = 0, normalized size = 0.00 \[ {\rm integral}\left ({\left (B b \sec \left (d x + c\right )^{2} + A a + {\left (B a + A b\right )} \sec \left (d x + c\right )\right )} \sqrt {\cos \left (d x + c\right )}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (B \sec \left (d x + c\right ) + A\right )} {\left (b \sec \left (d x + c\right ) + a\right )} \sqrt {\cos \left (d x + c\right )}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 5.33, size = 244, normalized size = 3.44 \[ -\frac {2 \left (A \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \EllipticF \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right ) \sqrt {2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, b -A \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \EllipticE \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right ) \sqrt {2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, a +B \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \EllipticF \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right ) \sqrt {2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, a +B \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \EllipticE \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right ) \sqrt {2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, b -2 B b \cos \left (\frac {d x}{2}+\frac {c}{2}\right ) \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )\right )}{\sin \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (B \sec \left (d x + c\right ) + A\right )} {\left (b \sec \left (d x + c\right ) + a\right )} \sqrt {\cos \left (d x + c\right )}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 3.34, size = 96, normalized size = 1.35 \[ \frac {2\,A\,a\,\mathrm {E}\left (\frac {c}{2}+\frac {d\,x}{2}\middle |2\right )}{d}+\frac {2\,A\,b\,\mathrm {F}\left (\frac {c}{2}+\frac {d\,x}{2}\middle |2\right )}{d}+\frac {2\,B\,a\,\mathrm {F}\left (\frac {c}{2}+\frac {d\,x}{2}\middle |2\right )}{d}+\frac {2\,B\,b\,\sin \left (c+d\,x\right )\,{{}}_2{\mathrm {F}}_1\left (-\frac {1}{4},\frac {1}{2};\ \frac {3}{4};\ {\cos \left (c+d\,x\right )}^2\right )}{d\,\sqrt {\cos \left (c+d\,x\right )}\,\sqrt {{\sin \left (c+d\,x\right )}^2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \left (A + B \sec {\left (c + d x \right )}\right ) \left (a + b \sec {\left (c + d x \right )}\right ) \sqrt {\cos {\left (c + d x \right )}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________